package com.yh.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.yh.model.UserModel;

public interface UserDao {
        //查询所有用户
	public List<UserModel> getAll();
	    //添加一个用户
	public int addUser(UserModel user);
	    //根据用户id删除用户
	public int deleteUser(Integer id);
	    //根据用户名查询用户
	public UserModel selectUser(String name);
	    //修改用户
	public UserModel findUserById(Integer id);
	public int updateUser(UserModel user);
	//分页
	Map<String,String> map=new HashMap<String,String>();
	
}
